package com.wyk.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author WangYuKai
 * @Date 2022/5/13
 * @apiNote
 */
@Configuration
public class ApplicationContextConfig {
    //引入restTemplate模板
    //开启负载均衡机制
    @Bean
    //@LoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }

}
